package com.ningkang.ums.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ningkang.common.domain.ums.UserVo;
import com.ningkang.ums.domain.VisitorEntity;
import com.ningkang.ums.mapper.VisitorMapper;
import com.ningkang.ums.service.VisitorService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * @ClassName VisitorServiceImpl
 * @Description 就诊人信息接口实现类
 * @Author guoxin
 * @Date 2024/10/17 20:09
 */
@Service
public class VisitorServiceImpl extends ServiceImpl<VisitorMapper, VisitorEntity> implements VisitorService{

    /* *
     * @Title: createVisitor
     * @Author: DELL
     * @Date: 2024-10-18 11:25:10
     * @Params: [visitorEntity]
     * @Return: Result
     * @Description: 添加就诊人信息
     */
    @Override
    public void createVisitor(VisitorEntity visitorEntity) {
        visitorEntity.setCreateTime(LocalDateTime.now());
        this.save(visitorEntity);
    }
}
